GBML manual / Constants

SCANLINES_CRT

Television lines: some rows have their green swapped, others not, so the picture gets the fine stripes of an old television.

Works differently on Game Boy - A scanline look on the Game Boy darkens some rows by one shade, as a rolling bar or a few thin stripes; see screen_scanlines.

Game Boy Color: not available

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

SCANLINES_CRT: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names the television lines, for screen_scanlines. Rows with the green swapped are mixed in among rows without, in a pattern that repeats every few rows, and the picture gets the fine horizontal stripes of an old television set. Swapping the green only shows where two pixels side by side have different amounts of green, so a flat area looks the same either way. Pictures with lots of detail show it most.

strength is how many rows are swapped: 1 swaps one row in four, 2 swaps every other row, and 3 swaps three rows in four.

A real capture, four pictures of the same striped lighthouse standing in front of a wall of thin blue stripes and a floor of thin gold stripes - first as it is, then with SCANLINES_CRT at strength 1, 2 and 3 (more and more rows turn pink and green, one row in four, then every other row, then three rows in four, so the picture gets fine lines across it)A real capture, four pictures of the same striped lighthouse standing in front of a wall of thin blue stripes and a floor of thin gold stripes - first as it is, then with SCANLINES_CRT at strength 1, 2 and 3 (more and more rows turn pink and green, one row in four, then every other row, then three rows in four, so the picture gets fine lines across it)
A real capture, four pictures of the same striped lighthouse standing in front of a wall of thin blue stripes and a floor of thin gold stripes - first as it is, then with SCANLINES_CRT at strength 1, 2 and 3 (more and more rows turn pink and green, one row in four, then every other row, then three rows in four, so the picture gets fine lines across it)

The same picture four times: straight, then strength 1, 2 and 3 from left to right, each one standing still where the pattern had got to. Real pictures from a Game Boy Advance ROM.

This look stands still, so speed does nothing for it.

Example

screen_scanlines(SCANLINES_CRT, 2, 0);

The fine stripes of an old television. Call it once, for example when the room starts - it keeps going by itself until you call screen_scanlines(SCANLINES_NONE, 0, 0) or a room is loaded.

See also: screen_scanlinesSCANLINES_NONEgreen_swap